
import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/services.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import '../utils/material_color.dart';

Color _mainColor=const Color(0xff2ec4b6); //主题颜色

ThemeData defaultTheme=ThemeData(
    platform:TargetPlatform.iOS,
    scaffoldBackgroundColor:Colors.white,
    primaryColor:_mainColor, //主题颜色
    indicatorColor:_mainColor,
    colorScheme: ColorScheme.fromSwatch(
        primarySwatch: createMaterialColor(_mainColor),
    ).copyWith(),
    appBarTheme: AppBarTheme(
        centerTitle:true,
        backgroundColor:Colors.white,
        elevation: 0,
		toolbarTextStyle:TextStyle(fontSize: 16.sp,fontWeight: FontWeight.w300,color: Colors.black),
        // textTheme:TextTheme(
        //     headline6:TextStyle(fontSize: 16.sp,fontWeight: FontWeight.w300,color: Colors.black)
        // ),
		systemOverlayStyle:SystemUiOverlayStyle.light,
        iconTheme:const IconThemeData(
            color: Colors.black
        ),
        actionsIconTheme: const IconThemeData(
            color: Colors.black
        ),
    ),
    textTheme:TextTheme(
        bodyText1:TextStyle(fontSize: 14.sp,color: const Color(0xff444444),fontWeight: FontWeight.w400),
        bodyText2:TextStyle(fontSize: 16.sp,color: const Color(0xff444444),fontWeight: FontWeight.w400),
        headline1:TextStyle(fontSize: 16.sp,color: const Color(0xff444444),fontWeight: FontWeight.w400),
        headline2:TextStyle(fontSize: 18.sp,color: const Color(0xff444444),fontWeight: FontWeight.w400),
    ),
    iconTheme: const IconThemeData(
        color: Colors.black
    ),
    textSelectionTheme: TextSelectionThemeData(
        cursorColor: Colors.blue[300],
        selectionColor: Colors.blue[100],
    ),
    dialogBackgroundColor:Colors.black
);
